package com.yunc.modules.sys.job;

import com.yunc.common.schedule.AbstractScheduleJob;
import org.quartz.JobExecutionContext;
import org.quartz.JobKey;

import java.util.Date;

/**
 * @author taocongcong
 * @create 2018-09-20 17:49
 */
public class ScheduleTest extends AbstractScheduleJob {
    @Override
    public void before(JobExecutionContext context) {

    }

    @Override
    public void doWork(JobExecutionContext context) {
        JobKey jobKey = context.getTrigger().getJobKey();
        System.out.print("JobKey：" + jobKey + "，ScheduleTest：" + new Date() + "\n");
    }

    @Override
    public void after(JobExecutionContext context) {

    }
}
